<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<!-- The path assumes that this XSL file will reside on level below the XSL directory -->
	<xsl:import href="global_navigation_basics_imp.xsl" />
	<xsl:import href="custom_tool_imp.xsl" />
	<xsl:include href="../xsl_include/global_xsl_header_inc.xsl" />
	<xsl:strip-space elements="*" />
	<!-- Begin XSL Template Specifications-->
	<xsl:template name="bannerBar">
		<xsl:param name="simpleBanner">false</xsl:param>
		<!-- b06cwm 8/30/04 replaced params with variables -->
		<xsl:variable name="showSalutation">
			<xsl:value-of select="/application_header/salutation/show_salutation" />
		</xsl:variable>
		<xsl:variable name="showLogin">
			<xsl:value-of select="/application_header/navigation/login_action/show_login" />
		</xsl:variable>
		<xsl:variable name="showLogout">
			<xsl:value-of select="/application_header/navigation/logout_action/show_logout" />
		</xsl:variable>
		<!-- end b06cwm 8/30/04 -->

		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td class="fdsBannerBar">
					<table border="0" cellspacing="0px" cellpadding="0" height="23px" width="100%">
						<tr>
							<td width="100%" align="left" class="fdsBannerBar" style="padding-left:5px; border-bottom: 0px none #000000"
								nowrap="nowrap">
								<!--<img src='styleguide/images/fed_logo.gif' alt="Federated Department Stores" height="21px" width="80px" />-->
								<!--<img src='styleguide/images/fed_logo.gif' alt="Federated Department Stores" height="21px" width="80px" />-->
							</td>
							<xsl:if test="$simpleBanner='false'">
								<td width="4px" height="23px">
									<img src='styleguide/images/greetings_corner.gif' />
								</td>
								<td height="23px" background='styleguide/images/greetings_bg.gif' style="padding-right:5px; padding-left:5px;"
									nowrap="nowrap" class="fdsGreeting">
									<xsl:if test="$showSalutation='true'">
										<xsl:value-of select="application_header/salutation/description" /> | 
									</xsl:if>
									<span id="dateTime" name="dateTime" />
								</td>
								<td width="18px" height="23px" valign="top">
									<img src='styleguide/images/utilities_corner.gif' />
								</td>
								<td height="23px" background='styleguide/images/utilities_bg.gif' style="padding-right:5px; padding-left:5px;"
									nowrap="nowrap" class="fdsUtilities"></td>
								<td valign="middle" background='styleguide/images/utilities_bg.gif' align="right" style="padding-right:5px; padding-left:5px; vertical-align=middle;"
									nowrap="nowrap" width="67px">
									<!-- <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text> -->
									<xsl:if test="$showLogin='true'">
										<a class="fdsBannerBarLink">
											<xsl:attribute name="href">
												<xsl:value-of select="application_header/navigation/login_action/loginURL" />
											</xsl:attribute>
											<img alt='Login' src="styleguide/images/login.gif" border="0" width="63" height="17" title='Login' />
										</a>
									</xsl:if>
									<xsl:if test="$showLogout='true'">
										<a class="fdsBannerBarLink">
											<xsl:attribute name="href">
												<xsl:value-of select="application_header/navigation/logout_action/logoutURL" />
											</xsl:attribute>
											<img alt='Logout' src="styleguide/images/logout.gif" border="0" width="63" height="17" title='Logout' />
										</a>
									</xsl:if>
								</td>
							</xsl:if>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td width="100%" class="fdsBannerBarSepBottom">
					<img src='styleguide/images/dot.gif' height="1px" width="1px" />
				</td>
			</tr>
		</table>
	</xsl:template>
	
	<xsl:template name="toolBar">
		<!-- b06tja 6/15/04 -->
		<xsl:param name="launchTool" />
		<!-- end b06tja 6/15/04 -->	
		<!-- b08shf 8/10/04 -->
		<xsl:param name="showCustomTools">false</xsl:param>
		<!-- end b08shf 8/10/04 -->	
		<!-- b08shf 9/21/04 -->
		<xsl:param name="quickLinks" />
		<!-- end b08shf 9/21/04 -->
		<xsl:param name="showSearch">false</xsl:param>
		<xsl:param name="showPrint">false</xsl:param>
		<xsl:param name="showHelp">false</xsl:param>
		<xsl:param name="helpURL">www.amazon.com</xsl:param>
		<xsl:param name="helpWindowHeight">200</xsl:param>
		<xsl:param name="helpWindowWidth">400</xsl:param>
		<xsl:param name="helpScrolling">no</xsl:param>
		<xsl:param name="helpResizeable">no</xsl:param>
		<xsl:param name="helpStatus">no</xsl:param>
		<xsl:param name="helpMenu">no</xsl:param>
		<xsl:param name="helpToolbar">no</xsl:param>
		
		<table border="0" cellpadding="0" cellspacing="0" width="100%" class="fdsToolBar" height="23px">
			<tr>
				<td width="100%" style="padding-right:5px;">
					<table border="0" cellspacing="0" cellpadding="0">
						<tr>
							<xsl:if test="$showSearch='true'">
								<td height="23px" background='styleguide/images/search_bg.gif' nowrap="nowrap" style="padding-left:5px; padding-top:2px;"><img src='styleguide/images/m_glass.gif'/></td> 
								<td class="fdsToolBarIcon" style="padding-top:3px;padding-left:0px;" height="23px" background='styleguide/images/search_bg.gif' nowrap="nowrap"><input class="fdsToolBarInput" id="search_criteria" name="search_criteria" height="17px"/></td>
								<td class="fdsToolBarIcon" style="padding-top:3px;padding-right:3px;padding-left:0px;" height="23px" background='styleguide/images/search_bg.gif' nowrap="nowrap"><input class="fdsToolBarButton" id="Search" value="Search" name="Search" type="button" border="0px"/></td>
								<td width="23px" height="23px"><img src='styleguide/images/search_corner.gif'/></td>
							</xsl:if>
							<td width="100%" height="23px">
								<span class="fdsApplicationName">
									<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
									<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
									<xsl:value-of select="/application_header/title" />
								</span>
							</td>

							<!-- b08shf 9/21/04 -->
							<xsl:if test="$quickLinks">
								<td class="fdsToolBarTextDark" nowrap="nowrap" style="font-weight:bold;padding-right:0px;padding-top:5px;vertical-align:top;"><xsl:value-of select="$quickLinks/@label" /></td>
								<td class="fdsToolBarIcon" nowrap="nowrap" style="padding-top:1px; vertical-align:top;"
									height="17px">
									<select id="quickLinks" name="quickLinks">
										<option value="">Select One</option>
										<xsl:for-each select="$quickLinks/option">
											<option>
												<xsl:attribute name="value">
													<xsl:value-of select="@url" />
												</xsl:attribute>
												<xsl:value-of select="@label" />
											</option>
										</xsl:for-each>
									</select>
								</td>
								<td class="fdsToolBarIcon" style="padding-top:1px;padding-bottom:2px;padding-right:3px;padding-left:3px;"
									height="17px" nowrap="nowrap">
									<input type="button" height="15px" class="fdsToolBarButton" id="Go" value="Go" name="Go"
										border="0px" onClick="javascript:quickLink(quickLinks.options[quickLinks.selectedIndex].value, {$quickLinks/@popUp});" />
								</td>
							</xsl:if>
							<!-- b06tja 6/15/04 10:00     -->
							<xsl:if test="$launchTool">
								<td class="fdsToolBarTextDark" nowrap="nowrap" style="font-weight:bold;padding-right:0px;padding-top:5px;vertical-align:top;"><xsl:value-of select="$launchTool/label"/></td>
								<td class="fdsToolBarIcon" nowrap="nowrap" style="padding-top:0px; vertical-align:top;" height="17px">
									<input height="15px">
										<xsl:attribute name="type">
											<xsl:value-of select="$launchTool/input_type" />
										</xsl:attribute>
										<xsl:attribute name="size">
											<xsl:value-of select="$launchTool/input_type/@size" />
										</xsl:attribute>
										<xsl:attribute name="id">
											<xsl:value-of select="$launchTool/input_type/@id" />
										</xsl:attribute>
										<xsl:attribute name="name">
											<xsl:value-of select="$launchTool/input_type/@name" />
										</xsl:attribute>
										<xsl:attribute name="onkeypress">
											<xsl:text disable-output-escaping="yes">launchToolCallBack(event, '</xsl:text>
											<xsl:value-of select="$launchTool/action" />
											<xsl:text disable-output-escaping="yes">','</xsl:text>
											<xsl:value-of select="$launchTool/input_type/@name" />
											<xsl:text disable-output-escaping="yes">',</xsl:text>
											<xsl:value-of select="$launchTool/input_type/@name" />
											<xsl:text disable-output-escaping="yes">.value)</xsl:text>
										</xsl:attribute>
									</input>
								</td>
								<td class="fdsToolBarIcon" style="padding-top:1px;padding-bottom:2px;padding-right:3px;padding-left:3px;" height="17px" nowrap="nowrap">
									<input type="button" height="15px" class="fdsToolBarButton" id="Go" value="Go" name="Go"  border="0px">
										<xsl:attribute name="onClick">
											<xsl:text disable-output-escaping="yes">javascript:appendValueToLaunchTool('</xsl:text>
											<xsl:value-of select="$launchTool/action" />
											<xsl:text disable-output-escaping="yes">','</xsl:text>
											<xsl:value-of select="$launchTool/input_type/@name" />
											<xsl:text disable-output-escaping="yes">',</xsl:text>
											<xsl:value-of select="$launchTool/input_type/@name" />
											<xsl:text disable-output-escaping="yes">.value)</xsl:text>
										</xsl:attribute>
									</input>
								</td> 

							</xsl:if>
							<!-- end b06tja 6/15/04 10:00 -->							
							<!-- b08shf 8/10/04  -->
							<xsl:if test="$showCustomTools='true'">
								<td class="fdsToolBarIcon" nowrap="nowrap" style="vertical-align: top;">
									<xsl:call-template name="customTools" />
								</td>
							</xsl:if>
							<xsl:if test="/application_header/navigation/siteIndex_tool/url">
								<td class="fdsToolBarIcon" nowrap="nowrap" style="vertical-align: top;">
									<a class="fdsToolBarLink" href='#'>
									<xsl:attribute name="onClick">
											<xsl:text disable-output-escaping="yes">javascript:window.open('</xsl:text>
											<xsl:value-of select="application_header/navigation/siteIndex_tool/url" />
											<xsl:text disable-output-escaping="yes">','SiteIndex','menubars=no,toolbars=no,scrollbars=no,status=no,resizable=no,width=500,height=425,top=100,left=100');</xsl:text>
										</xsl:attribute>
										<img border="0" width="55" height="17" src='styleguide/images/siteIndex.gif' alt="Launch Site Index Window" />
									</a>
								</td>
							</xsl:if>
							<xsl:if test="$showPrint='true'">
								<td class="fdsToolBarIcon" nowrap="nowrap" style="vertical-align: top;">
									<img border="0" width="43px" height="17px" src='styleguide/images/print.gif' alt="View printer-friendly version of this page"/>
								</td>
							</xsl:if>													
							<xsl:if test="$showHelp='true'">
								<td class="fdsToolBarIcon" nowrap="nowrap" style="vertical-align: top;">
									<a class="fdsToolBarLink" href='#' target="PortalHelpWindow" onClick="javascript: window.open('{$helpURL}','HelpWindow','resizable={$helpResizeable},scrollbars={$helpScrolling},menubar={$helpMenu},toolbar={$helpToolbar},status={$helpStatus},width={$helpWindowWidth},height={$helpWindowHeight},screenX=50,screenY=50,top=50,left=50').focus(); return	false;">
										<img border="0" width="43" height="17" src='styleguide/images/help.gif' alt="Launch Help Window" />
									</a>
								</td>
							</xsl:if>
							<!-- end b08shf 8/10/04  -->
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</xsl:template>
	
	<xsl:template name="brandingBanner">
		<xsl:param name="primaryNav" />
		<table border="0" cellpadding="0" cellspacing="0" width="100%" align="left" class="fdsCenterArea"
			height="62px">
			<tr>
				<td rowspan="2" width="172px">
					<img width="172px" height="62px">
						<xsl:attribute name="src">
							<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/brandImageLeft" />
						</xsl:attribute>
						<xsl:attribute name="alt">
							<xsl:value-of select="/application_header/title" />
						</xsl:attribute>
					</img>
				</td>
				<td width="20px" height="42px" class="fdsBlankPlace" align="left">
					<img src='styleguide/images/dot.gif' height="1px" width="1px" />
				</td>
				<td width="*" align="left" height="42px" valign="bottom" nowrap="nowrap">
					<!-- one row, one cell table to span the page-->
					<table border="0" cellspacing="0" cellpadding="0" width="100%" height="22px">
						<tr>
							<td align="left" valign="bottom" nowrap="nowrap">
								<xsl:call-template name="primaryNavigation">
									<xsl:with-param name="primaryNav" select="$primaryNav"/>
								</xsl:call-template>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="20px" width="20px" class="fdsSelectedPrimaryDescBar" id="placeDescBar1">
					<img height="20px" width="20px">
						<xsl:attribute name="src">
							<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/brandImageRight" />
						</xsl:attribute>
						<xsl:attribute name="alt">
							<xsl:value-of select="/application_header/title" />
						</xsl:attribute>
					</img>
				</td>
				<td width="*" align="left" nowrap="nowrap" class="fdsSelectedPrimaryDescBar" id="placeDescBar2"
					height="20px">
					<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
					<span id="placeDesc" class="fdsSelectedPrimaryDesc">
						<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/description" />
					</span>
					<input type="hidden" id="selectedPrimaryDesc">
						<xsl:attribute name="value">
							<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/description" />
						</xsl:attribute>
					</input>
				</td>
			</tr>
		</table>
	</xsl:template>

</xsl:stylesheet>
